package com.duobaoyu.dby.supply.common.biz.dto.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author 001
 * @Date 2022/6/7 11:23
 * @Version 1.0
 * @Description 余额预警入参dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BalanceWarnDTO implements Serializable {
	private static final long serialVersionUID = -7951965775274902665L;

	@ApiModelProperty(value = "主键id")
	private Long id;

	/**
	 * 功能是否开启 0：未开启  1：开启
	 */
	@ApiModelProperty(value = "功能是否开启 0：未开启  1：开启")
	private Boolean enable;

	/**
	 * 预警金额
	 */
	@NotNull(message = "预警金额不能为空")
	@ApiModelProperty(value = "预警金额(单位元)")
	private BigDecimal warnAmount;

	/**
	 * 三方渠道
	 */
	@ApiModelProperty(value = "三方渠道")
	private String channelCode;
}
